#pragma once
#include "Console.h"
class TicTacToe
{
private:
	
	char grid[3][3];
	int turn;
	int winner;
	bool turnNotOver;
	bool gameOver;

public:

	TicTacToe(void);
	~TicTacToe(void);



	void drawBoard( int x, int y);
	void moveCursor( int input );
	void drawMark( int input, int& turn );
	int detectGameOver();
	char detectWinner( int winType );
	void printWinner( char winner );

	int getTurn( ){ return this->turn; }
	void setTurn( int turn ){ this->turn = turn; }

	char getGrid( int y, int x ) { return this->grid[y][x]; }
	void setGrid( int y, int x, char ch ) { this->grid[y][x] = ch; }

	bool getTurnNotOver() { return this->turnNotOver; }
	void setTurnNotOver( bool turnNotOver ) { this->turnNotOver = turnNotOver; }

};

